package com.ruoyi.com.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 行政区划字典数据对象 sys_area_dictionary
 *
 * @author sunye
 * @date 2024-09-24
 */
public class SysAreaDictionary extends BaseDomain
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value ="id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "城市名称")
    @Excel(name = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "父级ID")
    @Excel(name = "父级ID")
    private Long parentId;

    @ApiModelProperty(value = "城市缩写名称")
    @Excel(name = "城市缩写名称")
    private String shortName;

    @ApiModelProperty(value = "城市层级")
    @Excel(name = "城市层级")
    private Long level;

    @ApiModelProperty(value = "经度")
    @Excel(name = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @Excel(name = "纬度")
    private String latitude;

    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Long sortNumber;

    @ApiModelProperty(value = "删除标志（0-未删除，1-已删除）")
    @Excel(name = "删除标志", readConverterExp = "0=-未删除，1-已删除")
    private Long deleteFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCityName(String cityName)
    {
        this.cityName = cityName;
    }

    public String getCityName()
    {
        return cityName;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setShortName(String shortName)
    {
        this.shortName = shortName;
    }

    public String getShortName()
    {
        return shortName;
    }
    public void setLevel(Long level)
    {
        this.level = level;
    }

    public Long getLevel()
    {
        return level;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }

    public String getLatitude()
    {
        return latitude;
    }
    public void setSortNumber(Long sortNumber)
    {
        this.sortNumber = sortNumber;
    }

    public Long getSortNumber()
    {
        return sortNumber;
    }
    public void setDeleteFlag(Long deleteFlag)
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag()
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cityName", getCityName())
            .append("parentId", getParentId())
            .append("shortName", getShortName())
            .append("level", getLevel())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("sortNumber", getSortNumber())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
